package ide.ccf.ccproject.wizards;

import ide.ccf.ccproject.translate.Message;
import ide.ccf.ccproject.wizards.pages.UiFileWizardPage;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;


/**
 * 新建类向导
 *
 */
public class ClassWizard extends AbstractClassWizard 
{
	private UiFileWizardPage m_uipage;

	/**
	 * 构造器
	 */
	public ClassWizard() 
	{
		setWindowTitle(Message.ClassWizard_0);
	}

	/**
	 * 添加页面到向导
	 */
    public void addPages() 
    {
        super.addPages();
        
        m_uipage = new UiFileWizardPage(m_selection);
        addPage(m_uipage);
    }

    /**
     * 创建文件
     */
	protected void createFiles(IProgressMonitor monitor) throws InterruptedException, CoreException 
	{
		m_uipage.createFiles(monitor);
	}
	
}